/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 14:00:30  
 * Copyright (c) 2015- -版权所有     
 */

package com.joysuch.wwyt.edu.service;

import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import com.joysuch.wwyt.edu.bean.EduCertPageParam;
import com.joysuch.wwyt.edu.bean.EduCertificateEditBean;
import com.joysuch.wwyt.edu.bean.EduCertificateListBean;
import com.joysuch.wwyt.edu.bean.EduCertificateListBean.SearchEduCertificate;
import com.joysuch.wwyt.edu.entity.EduCertificate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface EduCertificateService {

    public EduCertificate add(EduCertificateEditBean entity);

    void update(EduCertificateEditBean entity);

    Page<EduCertificateListBean> findByPage(Pageable page, SearchEduCertificate condition);

    void delete(Long id) throws BusinessRestrictionsException;

    EduCertificateEditBean getById(Long id);

    EduCertificate findById(Long id);

    List<SimpleSelectListBean> getSimpleList(Integer useState);

    ResultBean getSimplePage(Pageable pageable, EduCertPageParam param);
}
